package com.ff.exerpro.vo.req;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class EmpAddVo {
    @NotBlank(message = "{invalid.notblank.name}")
    private String empName;
    @NotNull(message = "{invalid.notnull.age}")
    @Min(value = 18, message = "{invalid.min.age}")
    private Integer age;

    @Min(value = 150, message = "{invalid.min.salary}")
    private Double empSalary;
}
